package com.workpaper.app.utils.navigation;

import java.util.HashMap;
import java.util.Map;

import com.workpaper.app.cache.resource.ViewInfoCache;
import com.workpaper.app.consts.AppConsts;
import com.workpaper.app.consts.navigation.NavigationViewConsts;

public class NavigationUtils {
	/**
	 * 导航菜单文本和对应功能模块主窗口ID映射
	 */
	private static final Map<String, String> menu_view_map;
	
	static{
		menu_view_map = new HashMap<String, String>();
		//计划管理映射
		menu_view_map.put(ViewInfoCache.get(NavigationViewConsts.menuPlanManage), AppConsts.DAILY_PLAN_MANAGE_VIEW);
		//工作日报
		menu_view_map.put(ViewInfoCache.get(NavigationViewConsts.menuWorkpaperDay), AppConsts.DAILY_WORKPAPER_MANAGE_VIEW);
//	{{"计划安排", "计划执行", "计划统计"}, {"工作日志", "工作周报"}, {"个人绩效", "团队绩效"}} ;
	}
	
	/**
	 * 根据菜单文本获取对应的ViewId
	 * @param menuText
	 * @return
	 */
	public static String getViewId(String menuText) {
		return menu_view_map.get(menuText);
	}
}
